<?php
include_once 'AgoraController.class.php';

$channelName = $_GET['channelName'];    
$uid = $_GET['uid'];
$fun = $_GET['fun'];

$agora = new AgoraController();
$key = $agora->generateKey($channelName, $uid, $fun);
echo $key;